package com.biz.primus.ms.commodity.trans;

import com.biz.primus.ms.commodity.dao.po.Brand;
import com.biz.primus.ms.commodity.dao.ro.BrandRo;
import com.google.common.base.Function;

/**
 * 转换器(Brand --> BrandRo)
 *
 * @author david-liu
 * @date 2017年01月23日
 * @reviewer
 */
public class Brand2BrandRo implements Function<Brand, BrandRo> {
    @Override
    public BrandRo apply(Brand po) {
        BrandRo ro = new BrandRo();
        ro.setId(po.getId());
        ro.setName(po.getName());
        ro.setLogo(po.getLogo());
        ro.setIdx(po.getIdx());
        ro.setStatus(po.getStatus());
        ro.setPrefix(po.getPrefix());
        return ro;
    }
}
